<?php echo $head; ?>
</head>

<body>
	<div class="wrapper_main">
		<?php echo $header; ?>
		<div class="wrapper_content">
			<?php echo $left; ?>
			<div class="primary">
				<div class="navigator">
					<a href="<?php echo base; ?>"><?php echo $lang["navi"]["home"]; ?></a>
					<a href=""><?php echo $lang["navi"]["news"] ?></a>							
				</div>
				<div class="clear"></div>
				<div class="content">
					<div class="tin_tuc">
						<h1><?php echo $lang["news"]["title"]; ?></h1>
                        <?php if(!empty($news)) : ?>
                        	<?php foreach($news as $_news) :
								$_link = $curr_link . $_news->news_url;
								$_imglink = base_common . "upload/default/no_image.gif";
								if(!empty($_news->image))
									$_imglink = $news_path . add_before_ext("small", $_news->image);
							?>
                            	<div class="de_muc_left">                                	
									<a href="<?php echo $_link; ?>" ><img class="boder_img" src="<?php echo $_imglink; ?>" width="154" height="107"/></a>
									<a href="<?php echo $_link; ?>" class="de_muc_title_l"><?php echo $_news->newsTitle; ?></a> <span class="color_dt_span1">[<?php echo $_news->createdDate; ?>]</span>
									<p><?php echo $_news->shortDesc; ?></p>
									<a href="<?php echo $_link; ?>" class="chi_tiet"><?php echo $lang["news"]["detail"]; ?></a>
								</div>
							<?php endforeach; ?>
                        <?php endif; ?>						
						<div class="clear"></div>
						<div class="page">
                        	<?php if($page > 1 ) : ?>
	                        	<a class="prev np" href="<?php echo $curr_link . "?page=" . ($page - 1); ?>"><img src="<?php echo base; ?>images/prev.jpg" width="23" height="23" /></a>
                            <?php endif; ?>
                        	<?php for($i = 1; $i <= $total_page; $i++) :
								$href = "href=\"" . $curr_link . "?page=" . $i . "\"";
								if($i == $page)
									$href = "class=\"active\" href=\"" . $curr_link . "?page=" . $i . "\"";									
							?>                            	
                            	<a <?php echo $href; ?>><?php echo $i; ?></a>
                            <?php endfor; ?>
                            <?php if($page < $total_page ) : ?>
                            	<a class="next np" href="<?php echo $curr_link . "?page=" . ($page + 1); ?>"><img src="<?php echo base; ?>images/next.jpg" width="23" height="23" /></a>		
                            <?php endif; ?>
						</div>
						<div class="clear_left"></div>							
					</div><!-- STOP tin_tuc -->
				</div><!--end .content-->
			</div><!--end .primary-->	
			<div class="clear"></div>	
		</div><!--end .wrapper_content-->
		<?php echo $footer; ?>	
	</div><!--end .wrapper_main-->
</body>
</html>
